#include <stdio.h>
int main(){
    char *filename = "test1.txt";
    FILE *ioFile = fopen(filename,"r");
    if(ioFile == NULL){
        printf("r不能打开不存在的文件\n");
    }else{
        printf("r能打开不存在的文件\n");
    }
    int result = fclose(ioFile);
    if(result != 0){
        printf("关闭文件失败");
        return -1;
    }
    return 0;
}